package demo9;

public class Son {

    static {  //子类静态代码块
        System.out.print("(6)");
    }
    Son(){  //子类构造器
        System.out.print("(7)");
    }

    {  //子类非静态代码块
        System.out.print("(8)");
    }
    public int test(){
        System.out.print("(9)");
        return 1;
    }
    public static int method(){
        System.out.print("(10)");
        return 1;
    }

    public static void main(String[] args) {
        Son son=new Son();
        System.out.println();
        Son son1=new Son();
    }
}